import requests
import web_uuid
import ip
import re
web=web_uuid.webid()
print(web)
webid=re.sub('/', '%2',web)
print(webid)
headers = {
    "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
    "accept-language": "zh-CN,zh;q=0.9",
    "cache-control": "max-age=0",
    "priority": "u=0, i",
    "referer": "https://www.qizhidao.com/secure/manmachine?redirectUrl=https%3A%2F%2Fwww.qizhidao.com%2F",
    "sec-ch-ua": "\"Chromium\";v=\"128\", \"Not;A=Brand\";v=\"24\", \"Google Chrome\";v=\"128\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "document",
    "sec-fetch-mode": "navigate",
    "sec-fetch-site": "same-origin",
    "sec-fetch-user": "?1",
    "upgrade-insecure-requests": "1",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
}
cookies = {
    "wz_uuid": "X%2Fea461f08dd7efc009a1dc21ce75be14e",
    "_bl_uid": "Xjlbsz7Orz7vpOyb0mdp4C24weUm",
    "sensorsdata2015jssdkchannel": "%7B%22prop%22%3A%7B%22_sa_channel_landing_url%22%3A%22%22%7D%7D",
    "acw_tc": "784e2cb017260245669376377e741f8a9b8138b65a75da8f51f03a936b480c",
    "sensorsdata2015jssdkcross": "%7B%22distinct_id%22%3A%2219149dbbd7f685-04acea045abdc54-26001e51-2073600-19149dbbd802ef%22%2C%22first_id%22%3A%22%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E8%87%AA%E7%84%B6%E6%90%9C%E7%B4%A2%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC%22%2C%22%24latest_referrer%22%3A%22https%3A%2F%2Fcn.bing.com%2F%22%7D%2C%22identities%22%3A%22eyIkaWRlbnRpdHlfY29va2llX2lkIjoiMTkxNDlkYmJkN2Y2ODUtMDRhY2VhMDQ1YWJkYzU0LTI2MDAxZTUxLTIwNzM2MDAtMTkxNDlkYmJkODAyZWYifQ%3D%3D%22%2C%22history_login_id%22%3A%7B%22name%22%3A%22%22%2C%22value%22%3A%22%22%7D%2C%22%24device_id%22%3A%2219149dbbd7f685-04acea045abdc54-26001e51-2073600-19149dbbd802ef%22%7D",
    "Hm_lvt_9ea3e7293b7c088e0d2c88874b63e7dd": "1723521098,1726024568",
    "HMACCOUNT": "EA447ECC51709984",
    "x-web-ip": "114.216.162.68, 121.199.80.167, 120.78.44.156, 100.121.99.169",
    ".thumbcache_de0d870e3139ba2368b2e7ea8f11063c": "cTqmnS0xuVvhRUqTL1tJ92ItCjYbQ2Z+D9BpQVDEYG1qjPL3qTXd9wWjenKV56OpRK2QuHvwSzVtYjpc65k1nw%3D%3D",
    "Hm_lpvt_9ea3e7293b7c088e0d2c88874b63e7dd": "1726024580",
    "accessToken": "",
    "token": ""
}
url = "https://www.qizhidao.com/"
result = ip.get_ip()
ip = result[0].get('ip')
port = result[0].get('port')
proxies = {
        'http': f'socks5://18551441704:18551441704@{ip}:{port}',
        'https': f'socks5://18551441704:18551441704@{ip}:{port}'
    }

response = requests.get(url, headers=headers, cookies=cookies,proxies=proxies)

print(response.text)
print(response)